Product Features
◆DC7-30V;
◆Relay output contact isolation;
◆The communication interface supports WiFi and network ports;
◆Communication baud rate: 2400480096001920038400 (can be modified through software, default 9600)
◆Communication protocol: Supports standard Modbus RTU protocol;
◆You can set 0-255 device addresses, and the 5-digit address dip switch can set 1-31 address codes. For addresses greater than 31, they can be set through software;
◆Equipped with flashing and breaking functions, it can include parameters in the command and operate the relay to automatically turn off after a period of time;
◆It has a strobe function and can control the periodic switching of relays.
PRODUCT FUNCTION
◆12 channel optocoupler input(5-24V);
◆10 relay outputs;
◆Supports 5-digit addressing addresses;
◆Support manual control through computer software;
◆Support local non lock linkage mode;
◆Support local self-locking linkage mode;
◆Support interlock mode;
◆Dual machine non lock linkage mode;
◆Dual machine self-locking linkage mode.
◆Remote control through the internet.
Product Selection
Main parameters:
Interface Description:
wire connectionway
Relay wiring method
Schematic diagram of active switch wiring
Schematic diagram of passive switch wiring
WiFi Description
The WiFi module has four modes
1. Default mode: The WiFi module serves as a hotspot and can be controlled by connecting to WiFi on a computer or mobile phone. It can also be connected through a network port.
2. WiFi AP to serial port conversion: WiFi can only be used as a hotspot. Connect to WiFi using a phone or computer, and control the module using the phone or computer.
3. Ethernet to serial port: Connect the module to a router or server via Ethernet cable. The module can be communicated through a computer or mobile phone connected to this router or server. (First, connect to WiFi for configuration)
4. WiFi Client to Serial Port: Configure the WiFi module to client mode and connect wirelessly to the router or server. Can communicate with other devices under this route.
Quick instructions for using each mode
Configuration interface:
Virtual Serial Port Description
There are two working modes for virtual serial ports
Interface:
Please refer to the detailed instructions in the relevant download for the installation method.
Mode configuration
Before configuring the mode, be sure to short-circuit the two reset pins of the WIFI module to restore it to factory settings.
The debugging process in default mode is detailed in the instruction manual.
Test software description
http://www.juyingele.com.cn/software/software/ Juying Soar DAM Debugging Software User Tutorial. rar (software video tutorial link)
Software functions:
Relay status inquiry
Relay independent control
Analog reading
Switch status query
Debugging information query
Change of working mode
Setting of offset address
Relay overall control
Working mode functions and settings
Connected Device
http://www.juyingele.com.cn/software/software/ Juying Soar DAM Debugging Software User Tutorial. rar (software video tutorial link)
Open the "Juying Soaring DAM Series Configuration Software"; Serial port settings bar: Select the corresponding COM port of your computer for the serial port, choose the default baud rate of the device (9600) for the baud rate (before setting the baud rate yourself), fill in the device address as "254" (254 is the broadcast address of the device), select the corresponding device model, set the four parameters of the above device, and clickOpen serial portClick the relay button“JD1”If the relay responds, the connection is successful.
Method for changing device address
Introduction to device address
Device offset address refers to offsetting based on the thin code switch address, with the specific relationship being: device address=dip switch address+offset address.
Note: This device does not have a dip switch, so the device address=offset address.
Reading device address
Click on 'Read Address' at the top of the software
Setting and Reading of Offset Address
Click on "Read" or "Set" after the offset address below the software to read or set the offset address of the device.
Reading and Setting of Baud Rate
Click on "Read" and "Set" in the baud rate settings bar below to read and set the baud rate and address respectively. After the operation, you need to restart the device and modify the computer serial port settings.
Introduction to Working Mode Functions
Non lock linkage mode of this machine
The board module itself has optocoupler input and relay output. In this mode, the input optocoupler and relay are directly linked. Namely: the optocoupler input signal takes effect ->the corresponding relay is engaged, the optocoupler input signal is cancelled ->the corresponding relay is disconnected.
In this mode, due to mechanical and program delays, there will be a certain delay from the optocoupler input signal to the relay action, but the maximum delay will not exceed 0.05 seconds.
Due to the fact that all relays are directly linked by optocouplers in this mode, there may be a phenomenon where the serial port cannot operate the relay. This is not an abnormal phenomenon, but rather a situation where the relay is linked by the optocoupler before it is activated after being operated through the serial port.
Local self-locking linkage mode
The module itself is a board module with optocoupler input and relay output. In this mode, every time the optocoupler inputs a signal, the corresponding relay flips once. Namely:
The optocoupler input signal takes effect ->the relay flips (switch from engagement to disconnection, switch from disconnection to engagement);
The optocoupler input signal is cancelled ->the relay does not operate;
This mode also has the delay issue of non lock mode, but the delay time will not exceed 0.05 seconds.
This mode can mainly be used in situations where external signals are triggered to control the start and stop of equipment, such as when an optocoupler is connected to a button and the corresponding relay is connected to an electrical device. Each time the button is pressed, the device will switch between start and stop states.
interlocked mode
The module itself is a board module with optocoupler input and relay output. In this mode, every time the optocoupler inputs a signal, the corresponding relay will engage, and other optocouplers without input signals will disconnect their corresponding relays. Namely:
The optocoupler input signal takes effect ->the corresponding relay is engaged and other relays are disconnected;
The optocoupler input signal is cancelled ->the relay does not operate;
This mode also has the delay issue of non lock mode, but the delay time will not exceed 0.05 seconds.
This mode can mainly be used for external signal triggering to control the start and stop of different devices. For example, if a multi-channel optocoupler is connected to an external button and the corresponding relay is connected to an electrical device, pressing one button will switch the corresponding device to the starting state, and other devices will stop running.
Dual machine non lock linkage mode
This mode requires two devices with the same address and mode to complete. After the two devices are connected through direct 485 or cross 232, the optocoupler status of module 1 will directly control the status of the corresponding relay of module 2, that is:
Module 1's No.1 optocoupler input signal takes effect ->Module 2's No.1 relay is engaged
Module 1's input signal for optocoupler 1 disappears ->Module 2's relay 1 is disconnected
The corresponding delay time of the relay in this mode is longer than the previous modes, but it will not exceed 0.1 seconds (9600 baud rate)
If a 485 bus is used in this mode, multiple devices can be connected in parallel, with each device matching its address, allowing for remote transmission of switch values. For example, if there are multiple low-speed switch signals on site that need to be transmitted to a control room 500 meters away to control alarm lights or electric bells, then only a few modules need to be arranged in the factory and connected to the corresponding modules in the room through two twisted pair shielded wires to complete the task. Similarly, the button signal for operating the computer room can also be directly transmitted to the relay located in the computer room module.
Dual machine self-locking linkage mode
This mode requires two devices with the same address and mode to complete. After the two devices are connected through direct 485 or cross 232, the optocoupler status of module 1 will take effect and flip the corresponding relay status of control module 2, that is:
Module 1's No.1 optocoupler input signal takes effect ->Module 2's No.1 relay flips
The input signal of optocoupler 1 in module 1 disappears ->the relay 1 in module 2 does not operate
The application of this mode is similar to the "dual machine non lock linkage" mode, but it is more suitable for remote control of device start and stop. Simply install a button on the operating end to achieve the action of pressing start and stop once.
Working mode function settings
Open it“Juying Soaring DAM Series Configuration Software”Click on the working mode settings bar below“read”And“set up”You can read and set the working mode separately.
Flashing function and settings
Introduction to the Flashing and Breaking Function
Manual mode: For each operation of the relay, the relay will flip once (open when closed, close when open);
Flashing mode: For each operation of the relay, the relay will close for 1 second (actual time [unit second]=set number * 0.1) and then automatically disconnect;
Flashing mode: For each operation of the relay, the relay will disconnect for 1 second (adjustable time) and then automatically close;
Flashing and disconnecting settings
Open the "Juying Soaring DAM Series Configuration Software" and click the dropdown arrow after the relay mode to select the mode.
Example of Communication Instructions
This product supports standard Modbus instructions. For detailed instruction generation and parsing methods, please refer to the register table in this article and consult the "MODBUS Protocol Chinese Version".
Modbus protocol Chinese version reference:
http://www.juyingele.com.cn/software/software/Modbus%20POLL Software and User Tutorial. rar
Modbus Register Description
This control card is mainly a coil register, which mainly supports the following instruction codes: 1, 5, 15
Coil register address table:
remarks:
① Modbus device commands support the following Modbus addresses:
00001 to 09999 are discrete outputs (coils)
10001 to 19999 are discrete inputs (contacts)
30001 to 39999 are input registers (usually analog inputs) 40001 to 49999 are holding registers (usually storing device configuration information)
Using a 5-digit code format, the first character determines the register type, and the remaining 4 characters represent the address. Address 1 starts from 0, such as 00001 corresponding to 0000.
② Table of baud rate values correspondence
③ Relay status can be queried through address 30002 or address 00001--00002, but control can only use address 00001--00002.
The data length of 30002 address is 16 bits. It can represent up to 16 relays.
The corresponding results are as follows:
The bit 8 of the data in register 30009 is the same as the data in register 00001.
Similarly, the same goes for optocoupler input. The bit8 and bit9 of register 30003 and registers 10001 and 10002 correspond to the specified hardware.
The register address follows the PLC naming convention, where the real address is obtained by removing the highest bit and then subtracting one.
Instruction generation instructions
Application example and explanation: In addition to the dip switch address, the default broadcast address for this device is 254. When there is only one device on the bus, there is no need to worry about the dip switch address. Simply use the 254 address. When there are multiple devices on the bus, select different addresses through the dip switch and send control instructions based on address differentiation.
Note: The RS485 bus can mount multiple devices.
The instructions can be obtained through the debugging information of the "Juying Soaring DAM Series Configuration Software".
Instruction generation instructions: For instructions not listed in the table below, users can generate them themselves according to the Modbus protocol. For reading and writing relay coils, it is actually reading and writing coil registers in the Modbus register. The address of the relay register has been explained in the previous text, and users only need to generate read and write instructions for register operations. For example, reading or writing the status of relay 1 is actually a read/write operation on the coil register 0001 corresponding to relay 1.
Detailed explanation:
Control 1 relay (taking the first circuit as an example, refer to this example for other channels)
Send code: FE 05 00 00 FF 00 98 35
Relay card return information:
Return code: FE 05 00 00 FF 00 98 35
1: Relay inquiry
Query 10 relays
FE 01 00 00 00 0A A8 02
Relay card return information:
FE 01 02 00 00 AD E8
Query optocoupler
Send code: FE 02 00 00 00 0C 6C 00
Optocoupler return information:
Return code: FE 02 02 00 00 AD AC
3. Analysis of flashing open and closing instructions
Flash development code: FE 10 00 03 00 02 04 00 04 00 0A 00 D8
Flashing sending code: FE 10 00 03 00 02 04 00 02 00 14 21 62
Return code: FE 10 00 03 00 02 A5 C7
4. Analysis of fully open and fully closed commands
Full development code submission: FE 0F 00 00 00 0A 02 FF FF A1 7C
Completely disconnect sending code: FE 0F 00 00 00 0A 02 00 00 A0 CC
Full open return code: FE 0F 00 00 00 0A C1 C3
Total disconnect return code: FE 0F 00 00 00 0A C1 C3
Common problems and solutions
1. Unable to establish communication using WiFi after the relay board is powered on
Reset WiFi module. Connect again with this link.
2. Unable to communicate with computer (phone)
Check if the configuration is correct.
3. No action after sending the command
Check if hexadecimal code is being sent
Is the code correct
4. I configured Ethernet mode and tried to configure it to another mode, but found that I couldn't connect to WiFi
Configure the WiFi module after resetting it